#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int main()
{
    int fd=open("myfifo",O_WRONLY);
    if(fd==-1)
    {
        perror("open failed");
        exit(EXIT_FAILURE);
    }
    const char* msg="i am process A\n";
    write(fd,msg,strlen(msg));
    close(fd);
    return 0;

}